| Conditions | 2 |
| Paths | 2 |
| Total Lines | 41 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | /* |
||
| 27 | function init_cas() |
||
| 28 | { |
||
| 29 | if(auth_check == 1) |
||
| 30 | { |
||
| 31 | /*$.post(check_logout_url, |
||
| 32 | { |
||
| 33 | _token : token, |
||
| 34 | ipaddress : ipaddress |
||
| 35 | }, |
||
| 36 | function(response){ |
||
| 37 | if(response == 1) |
||
| 38 | { |
||
| 39 | // force logout |
||
| 40 | $.get(logout_url, function(response){ |
||
| 41 | return false; |
||
| 42 | }); |
||
| 43 | } |
||
| 44 | return false; |
||
| 45 | });*/ |
||
| 46 | } |
||
| 47 | else |
||
| 48 | { |
||
| 49 | $.post(check_login_url, |
||
| 50 | { |
||
| 51 | _token : token, |
||
| 52 | ipaddress : ipaddress |
||
| 53 | }, |
||
| 54 | function(response){ |
||
| 55 | if(response == 1) |
||
| 56 | { |
||
| 57 | window.location.href = auth_page; |
||
| 58 | } |
||
| 59 | else |
||
| 60 | { |
||
| 61 | $.get(logout_url, function(response){ |
||
|
|
|||
| 62 | return false; |
||
| 63 | }); |
||
| 64 | } |
||
| 65 | }); |
||
| 66 | } |
||
| 67 | } |
||
| 68 | |||
| 73 |
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.